package com.lh.pospi.x_store.api;

import com.lh.pospi.x_store.modle.GoodsBean;
import com.lh.pospi.x_store.modle.RequestBrand;
import com.lh.pospi.x_store.modle.RequestCat;
import com.lh.pospi.x_store.modle.RequestCus;
import com.lh.pospi.x_store.modle.RequestGoods;
import com.lh.pospi.x_store.modle.RequestMark;
import com.lh.pospi.x_store.modle.RequestStock;
import com.lh.pospi.x_store.modle.RequestSup;
import com.lh.pospi.x_store.modle.RequestUser;
import com.lh.pospi.x_store.modle.ResultBean;
import com.lh.pospi.x_store.utils.Constant;

import java.util.Map;

import io.reactivex.Observable;
import retrofit2.Call;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * 请求接口
 */
public interface Api {
    @POST(Constant.URL_DOWN)
    @FormUrlEncoded
    Observable<RequestGoods> downGoods(@FieldMap Map<String,Object> map);

    @POST(Constant.URL_DOWN)
    @FormUrlEncoded
    Observable<RequestMark> downMark(@FieldMap Map<String,Object> map);

    @POST(Constant.URL_DOWN)
    @FormUrlEncoded
    Observable<RequestSup> downSup(@FieldMap Map<String,Object> map);

    @POST(Constant.URL_DOWN)
    @FormUrlEncoded
    Observable<RequestCus> downCus(@FieldMap Map<String,Object> map);

    @POST(Constant.URL_DOWN)
    @FormUrlEncoded
    Observable<RequestStock> downStock(@FieldMap Map<String,Object> map);


    @POST(Constant.URL_DOWN)
    @FormUrlEncoded
    Observable<RequestBrand> downBrand(@FieldMap Map<String,Object> map);


    @POST(Constant.URL_DOWN)
    @FormUrlEncoded
    Observable<RequestCat> downCat(@FieldMap Map<String,Object> map);


    @POST(Constant.URL_DOWN)
    @FormUrlEncoded
    Observable<RequestUser> downUser(@FieldMap Map<String,Object> map);

    @POST(Constant.URL_UP)
    @FormUrlEncoded
    Observable<ResultBean> upBill(@FieldMap Map<String,Object> map);
}
